package io.eleKing.boot.weather.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.eleKing.boot.framework.page.Paging;
import io.eleKing.boot.weather.dto.WeatherStationDto;
import io.eleKing.boot.weather.entity.WeatherStation;
import io.eleKing.boot.weather.query.WeatherStationQuery;
import io.eleKing.boot.weather.vo.WeatherStationVo;


/**
 * 自动站 服务接口
 *
 * @author eleKing
 * @since 2025-04-15
 */
public interface WeatherStationService extends IService<WeatherStation> {

    /**
     * 添加自动站
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean addWeatherStation(WeatherStationDto dto);

    /**
     * 修改自动站
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean updateWeatherStation(WeatherStationDto dto);

    /**
     * 删除自动站
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteWeatherStation(Long id);

    /**
     * 自动站详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    WeatherStationVo getWeatherStationById(Long id);

    /**
     * 自动站分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<WeatherStationVo> getWeatherStationPage(WeatherStationQuery query);

}
